package cn.itcast.music.entity;

import androidx.annotation.NonNull;
import java.io.Serializable;

@SuppressWarnings("unused")
public class Music implements Serializable {

    private static final long serialVersionUID = 1L;

    private final int id;

    private final String title;

    private final String artist;

    private final String album;

    private final String path;

    private final long duration;

    private final long size;

    public Music(String title, String artist, String album, String path,
            long duration, long size) {
        this(0, title, artist, album, path, duration, size);
    }

    public Music(int id, String title, String artist, String album, String path,
            long duration, long size) {
        this.id = id;
        this.title = title;
        this.artist = artist;
        this.album = album;
        this.path = path;
        this.duration = duration;
        this.size = size;
    }

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getArtist() {
        return artist;
    }

    public String getAlbum() {
        return album;
    }

    public String getPath() {
        return path;
    }

    public long getDuration() {
        return duration;
    }

    public long getSize() {
        return size;
    }

    @NonNull
    @Override
    public String toString() {
        return "Music{" + "title='" + title + '\'' + ", artist='" + artist
                + '\'' + ", album='" + album + '\'' + ", path='" + path + '\''
                + ", duration=" + duration + ", size=" + size + '}';
    }

}
